#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
#include"stack.h"

int main()
{
	Dream::stack<int,list<int>> s;
	for (int i = 0; i < 10; i++)
	{
		s.push(i);
	}
	for (int i = 0; i < 10; i++)
	{
		cout << s.top() << endl;
		s.pop();
	}
	return 0;
}